package seleiumtest;
import org.openqa.selenium.*;


public class BaseTest {
	private static String URL = "http://localhost:8080/ascent_war_exploded/";
	public static WebDriver driver;
	public static void main(String[] args) {
		try {

			UseBrowser useBrowser = new UseBrowser();
			driver = useBrowser.startEdge(URL);
			driver.manage().window().maximize();
			driver.findElement(By.name("username")).sendKeys("admin");
			Thread.sleep(2000);
			driver.findElement(By.name("password")).sendKeys("123456");
			Thread.sleep(2000);
			driver.findElement(By.xpath("/html/body/form/div[2]/div[3]/table/tbody/tr[2]/td[1]/input")).click();
			Thread.sleep(2000);
			driver.findElement(By.xpath("/html/body/form/div[1]/div[8]/div/a[3]")).click();
			Thread.sleep(2000);
			driver.findElement(By.xpath("/html/body/div[2]/div[5]/div/a[2]")).click();
			Thread.sleep(2000);
			driver.findElement(By.xpath("/html/body/form/div[2]/div[4]/div[3]/table/tbody/tr[2]/td[2]/select/option[4]")).click();
			Thread.sleep(2000);
			driver.findElement(By.name("searchValue")).sendKeys("ss");
			Thread.sleep(2000);
			driver.findElement(By.name("Submit")).click();
			Thread.sleep(2000);
			driver.findElement(By.xpath("/html/body/div[2]/div[1]/table[1]/tbody/tr/td[1]/div/a[1]")).click();
			Thread.sleep(2000);

			driver.close();



		} catch (Exception e) {
			System.out.println(e);
			}
		
		
		
	}

	}
	


